<style type="text/css">
body{background:#eee}
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:3.6rem}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.star .shine {
    color: #fa672d;
}
.star .icon {
    font-size: 0.6rem;
}
</style>
<div class="fui-page">
<div class="fui-content">
<div ng-if="!pagedata.vip.openvip || (pagedata.vip.openvip==1&&pagedata.user.isvip==1)" id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
	<div class="carousel-inner" role="listbox" style="height:6rem">
		<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.image">
			<a href="#">
				<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
	</div>
	<style>
            .fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
    </style>
		<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.image" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
		</div>
</div>
<div ng-if="pagedata.vip.openvip && pagedata.user.isvip==0" id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
	<div class="carousel-inner" role="listbox" style="height:6rem">
		<div ng-click="access_json('jy_yuyue/buyvip/')">
			<a href="#">
				<img src="{{tomedia(pagedata.vip.vip_img) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
	</div>
	<style>
            .fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
    </style>
</div>
<style>
.radius .fui-notice {border-radius:0.5rem}
.radius .fui-notice:before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 100%;
    border-top: 0 solid #e2e2e2;
}

.radius .fui-notice:after {
    content: " ";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0;
    width: 100%;
    border-top: 0 solid #e2e2e2;
}
</style>
	<div ng-if="pagedata.notice_list" class="fui-notice">
		<div class="image"><img src="../core/resource/images/diy/hotdot.jpg"></div>
		<div class="icon"><i class="fa fa-volume-up" style="font-size: 0.7rem;"></i></div>
		<div class="text">
			<ul>
					<li ng-repeat="item in pagedata.notice_list">
						<a href="javascript:;" ng-click="access_json('/noticedetail//id='+item.id)">{{item.title}}</a>
					</li>
			</ul>
		</div>
	</div>
		<script type="text/javascript">
			function autoScroll(obj){
				$(obj).find("ul").animate({  
					marginTop : "-1rem"  
				},500,function(){  
					$(this).css({marginTop : "0px"}).find("li:first").appendTo(this);  
				})  
			}  
			$(function(){  
				setInterval('autoScroll(".fui-notice .text")',3000);
			}) 
		</script>
<div class="fui-searchbar bar">
    <div ng-class="{'searchbar center':1,'searchbar-active':pagedata.searchbar ==1}">
                <input type="button" ng-click="access(pagedata.op,made_query(pagedata.params))"  value="搜索" class="searchbar-cancel searchbtn">
                <div class="search-input" ng-click="pagedata.searchbar =1">
                    <input type="search" placeholder="输入关键字" class="search" ng-model="pagedata.params.keyword">
                </div>
    </div>
</div>
<div ng-if="pagedata.basic.isworker!=1" class="fui-line" style="width:6rem;margin:0 auto">
	<div class="text text-danger bold" style="font-size:0.8rem">明星{{pagedata.diy.worker || '技师'}}</div>
</div>
<div ng-if="pagedata.basic.isworker!=1" class="fui-tab-scroll" style="height: 4.2rem">
			<div class="fui-icon-col" ng-repeat="item in pagedata.worker_show" ng-click="access_json('jy_yuyue/worker/detail/id='+item.id)" style="width:3rem;text-align:center;margin:.2rem">
					<div class="weui_cells_radio3" style="width:100%">
						<img class="img-circle"  src="{{tomedia(item.headimg) || '../core/resource/images/nopic.jpg'}}" style="width:3rem;height:3rem">
					</div>
					<div>
						<span style="font-size:0.6rem">{{item.name}}</span>
					</div>
			</div>
</div>
<div class="fui-line" style="width:6rem;margin:0 auto">
	<div class="text text-danger bold" style="font-size:0.8rem">推荐{{pagedata.diy.serve || '项目'}}</div>
</div>
<div style="padding:0 0.5rem">
<div class="fui-list-group merchgroup" style="margin-top:0">
            <div class="fui-list" ng-repeat="item in pagedata.serve_show">
                <a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_yuyue/sever/sever_detail/id='+item.id)">
                    <img class="round" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                </a>
                <a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_yuyue/sever/sever_detail/id='+item.id)">
                    <div class="title" style="font-size:0.76rem">
						{{item.title}}
						<span class="star star1 r-f" style="font-size:0.6rem">
									<span ng-class="{'shine':item.fenshu >= 1}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':item.fenshu >= 2}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':item.fenshu >= 3}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':item.fenshu >= 4}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':item.fenshu >= 5}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span class="star-rate" style="margin-left:0.2rem">{{item.fenshu || '0.0'}}分</span>
						</span>
					</div>
                    <div>
						<span style="font-size:0.6rem">已有{{item.usernum || 0}}个客户预约过</span>
						<span class="r-f" ng-if="item.price && pagedata.pluginset.norenjun!=1">人均{{item.price}}</span>
					</div>
					<div class="subtitle" style="font-size:0.55rem">
						<div class="store-moneylimit">
						  <span ng-if="item.times"> {{pagedata.diy.serve || '项目'}}时长：约{{item.times}}{{pagedata.pluginset.timesunit}}</span>
						</div>
					</div>
                </a>
            </div>
</div>
</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>